import request from '@/utils/request'

export function listMember(query) {
  return request({
    url: '/companyMember/list',
    method: 'get',
    params: query
  })
}

export function deleteMember(data) {
  return request({
    url: '/companyMember/delete',
    method: 'post',
    data
  })
}

export function createMember(data) {
  return request({
    url: '/companyMember/create',
    method: 'post',
    data
  })
}

export function readMember(query) {
  return request({
    url: '/companyMember/read',
    method: 'get',
    params: query
  })
}

export function editMember(data) {
  return request({
    url: '/companyMember/update',
    method: 'post',
    data
  })
}
